import request from '@/utils/request'

// 查询煎药列表
export function listSoaking(query) {
  return request({
    url: '/manage/soaking/list',
    method: 'get',
    params: query
  })
}

// 查询煎药详细
export function getSoaking(id) {
  return request({
    url: '/manage/soaking/' + id,
    method: 'get'
  })
}

// 新增煎药
export function addSoaking(data) {
  return request({
    url: '/manage/soaking',
    method: 'post',
    data: data
  })
}

// 修改煎药
export function updateSoaking(data) {
  return request({
    url: '/manage/soaking',
    method: 'put',
    data: data
  })
}

// 删除煎药
export function delSoaking(id) {
  return request({
    url: '/manage/soaking/' + id,
    method: 'delete'
  })
}
